package com.hcbd.tdwt.base;

import android.media.AudioFormat;

public class Constant {

    // 星宇手持机类型: P3/P31
    public static int P3 = 0;
    public static int P31 = 1;
    public static int XY_HANDSET = P3;
    /**
     * 打开GPG请求码
     */
    public static final int TO_OPEN_GPS_REQUEST_CODE = 22;

    public static final int SEND_MSG_SUCCESS=1;//发送成功
    public static final int SEND_MSG_FAIL=2;//发送失败
    public static final int SEND_MSG_WAIT=3;//发送中
    public static final int SEND_MSG_UNKNOWN=4;//发送中
    public static final int SEND_MSG_INBOUND=5;//入站成功
    public static final int SEND_MSG_RECEIVED=6;//接收成功
    
    /**
     * 获取手机通讯录联系人请求码
     */
    public static final int GET_MAIL_LIST_CONTACT_RESULT = 3;
    /**
     * 最后一次发送sos号码
     */
    public static final String LAST_SOS_NUMBER = "last_sos_number";
    /**
     * 最后一次报平安号码
     */
    public static final String LAST_REPORT_PEACE_NUMBER = "last_report_peace_number";
    /**
     * 最后一次发送北斗短报文号码
     */
    public static final String LAST_SEND_BD_MSG_NUM = "last_send_bd_message_number";




    public static final int TEXT=0;//发送文本
    public static final int AUDIO=1;//发送语音
    public static final int PICTURE=2;//发送图片
    //收到消息
    public static final int RECEIVE_MESSAGE = 0;
    //发出消息
    public static final int SEND_MESSAGE = 1;


    public static boolean  homePageIsRefresh=false;
    public static boolean  msgPageIsRefresh=false;

    public static final int ENTRY_SEND_CENTER_NUMBER=2;//中心号码进入
    public static final int ENTRY_SEND_USER_MSG=1;//消息列表进入

    public static String ENCODER_RATE="encoderRate";//碼率
    public static int encoderCodeRate=2;//碼率

    public static final String pos_mode="pos_mode";
    public static final String DATA_SOURCES="data_sources";
    public static final String ANTENNA_SETTINGS="antenna_settings";
    public static final String SWITCH_BG_NOTIFICATION="switch_bg_notification";
    public static final String SWITCH_UNREAD_MSG="unread_msg_not_Sw";
    public static final String SWITCH_SOUND="switch_sound";
    public static final String SWITCH_SHOCK="switch_shock";


    public static String sound_isOpen="Y";//声音通知
    public static String shock_isOpen="Y";//震动通知
    public static String unread_msg_isOpen="Y";//未读消息通知
    public static String bg_not_isOpen="Y";//后台通知

    public static final String Y="Y";//开
    public static final String N="N";//关
    public static final String CUSTOM_CONTENT="ok_custom_content";//自定义消息


    public static final String PLATFORM_CENTER_NUMBER="platform_center_num";//平台中心卡号KEY
    public static final String PLATFORM_3="15728650";//三号平台
    public static final String PLATFORM_2="424524";//二号平台


    public static final String POSITION_MODE="position_mode";//定位模式
    public static final String PHONE_POS="phone_pos";//手机定位
    public static final String BD_POS="bd_pos";//北斗定位

    public static final String LATITUDE_AND_LONGITUDE_FORMAT="latitude_and_longitude_format";//经纬度格式
    public static final int DEGREE_FORMAT=1;//度数格式
    public static final int DEGREE_MINUTES_SECONDS_FORMAT=2;//度分秒格式

    public static final String MSG_MODE="msg_mode";//发送消息模式
    public static final String POWER_MODE="power_mode";//功率模式
    public static final String CUSTOM_POWER_MODE="custom_power_mode";//自定义功率模式
    public static final String CHINESE_CHAR_MODE="chinese_char_mode";//汉字模式
    public static final String CODE_PATTERN="code_pattern";//编码模式
    public static final String BLEND_MODE="blend_mode";//混合模式

    public static final String SEND_POINT_TYPE="send_point_type";//发送频点
    public static final String POINT_TWO="point_two";//频点2
    public static final String POINT_THREE="point_three";//频点3

    public static final String  UPLOAD_PRO="upload_pro";


    public static final String  SOS_PRO="sos_pro";




    //录音
    //采样率
    public static final int sampleRateInHz = 8000;
    // 声道   CHANNEL_IN_STEREO为双声道，CHANNEL_CONFIGURATION_MONO为单声道
    public final static int channelConfig = AudioFormat.CHANNEL_CONFIGURATION_MONO;
    public final static int channelCount = channelConfig == AudioFormat.CHANNEL_IN_STEREO ? 2:1;
    //比特率
    public final static int BIT_RATE = 64;
    //编码格式
    public final static int audioFormat = AudioFormat.ENCODING_PCM_16BIT;
    //读取数据的最大字节数
    public final static int KEY_MAX_INPUT_SIZE =20 * 1024;


    /**
     * 选择图片时,最大显示数量
     */
    public static final int IMAGE_PICKER_MAX_ITEMS = 100;
    /**
     * 拍摄照片请求码
     */
    public static final int TAKE_PHOTO_REQUEST_CODE = 7;

    /**
     * 选择照片请求码
     */
    public static final int PICK_PHOTO_REQUEST_CODE = 8;








    public static final String CUSTOM_CHANNEL="custom_channel";//自定义消息




}
